export default {
    // 设置星座名
    setConsName (state, consName) {
        state.consName = consName;
    },

    // 设置字段
    setField (state, field) {
        state.field = field;
    },

    // 设置错误码
    setErrorCode (state, errorCode) {
        state.errorCode = errorCode;
    },

    // 设置数据
    setData (state, data) {
        state[state.field] = data;
    }
}